package com.k8.common.constants;

/**
 * @Author: k8
 * @CreateTime: 2025-03-31
 * @Version: 1.0
 */
public interface CommonConstants {
    String MID_INTERVAL = "_";
    int DEFAULT_THREADS = 200;
    String MEMORY_SAFE_QUEUE = "mSafeQueue";
    //jvm剩余多少内存，默认256MB，单位字节,限制阻塞队列大小
    String MAX_FREE_MEMORY = "maxFreeM";
    String MEMORY_LIMITED_QUEUE = "mLimitedQueue";
    String QUEUE_MEMORY_LIMIT = "memoryLimit";
    String LINKED_QUEUE = "linkedQueue";
    String ARRAY_QUEUE = "arrayQueue";
    String SYNCHRONOUS_QUEUE = "synQueue";
    String THREAD_NAME_PREFIX = "k8rpc";
    /*//默认的拒绝策略
    String ABORT_REJECT = "abort";*/
    String DISCARD_REJECT = "discard";
    String DISCARD_OLDEST_REJECT = "discardOldest";
    String CLUSTER_SET_SPLIT = ",";
    String MAPPING_GROUP = "mapping";
    String K8_GROUP = "k8";
    String DATA_ID_MID_FIX = ":";
    int DEFAULT_REGISTRY_RETRY_PERIOD = 5*1000;
    String CACHE_REGISTRY_DIR = ".K8";
    String CACHE_REGISTRY_PROPERTIES_FILE_FIX = "K8-registry-";
    String CACHE = ".cache";
}
